/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package info.skua.zehntausend;

/**
 *
 * @author MARTIN
 */
public class WuerfelAuswahlDialog extends javax.swing.JDialog {

    private final int[] Augen;
    private boolean[] output;

    /**
     * Creates new form WuerfelAuswahlDialog
     */
    public WuerfelAuswahlDialog(java.awt.Frame parent, boolean modal, boolean[] pOutput, int[] pAugen) {
        super(parent, modal);
        output = pOutput;
        Augen = pAugen;
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jToggleButton1 = new javax.swing.JToggleButton("", output[0]);
        jLabel1 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jToggleButton2 = new javax.swing.JToggleButton("", output[1]);
        jLabel2 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jToggleButton3 = new javax.swing.JToggleButton("", output[2]);
        jLabel3 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        jToggleButton4 = new javax.swing.JToggleButton("", output[3]);
        jLabel4 = new javax.swing.JLabel();
        jPanel5 = new javax.swing.JPanel();
        jToggleButton5 = new javax.swing.JToggleButton("", output[4]);
        jLabel5 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        getContentPane().setLayout(new java.awt.FlowLayout());

        jPanel1.setLayout(new java.awt.BorderLayout());

        jToggleButton1.setText("Behalten?");
        jPanel1.add(jToggleButton1, java.awt.BorderLayout.CENTER);

        jLabel1.setText("" + Augen[0]);
        jPanel1.add(jLabel1, java.awt.BorderLayout.PAGE_START);

        getContentPane().add(jPanel1);

        jPanel2.setLayout(new java.awt.BorderLayout());

        jToggleButton2.setText("Behalten?");
        jPanel2.add(jToggleButton2, java.awt.BorderLayout.CENTER);

        jLabel2.setText("" + Augen[1]);
        jPanel2.add(jLabel2, java.awt.BorderLayout.PAGE_START);

        getContentPane().add(jPanel2);

        jPanel3.setLayout(new java.awt.BorderLayout());

        jToggleButton3.setText("Behalten?");
        jPanel3.add(jToggleButton3, java.awt.BorderLayout.CENTER);

        jLabel3.setText("" + Augen[2]);
        jPanel3.add(jLabel3, java.awt.BorderLayout.PAGE_START);

        getContentPane().add(jPanel3);

        jPanel4.setLayout(new java.awt.BorderLayout());

        jToggleButton4.setText("Behalten?");
        jPanel4.add(jToggleButton4, java.awt.BorderLayout.CENTER);

        jLabel4.setText("" + Augen[3]);
        jPanel4.add(jLabel4, java.awt.BorderLayout.PAGE_START);

        getContentPane().add(jPanel4);

        jPanel5.setLayout(new java.awt.BorderLayout());

        jToggleButton5.setText("Behalten?");
        jPanel5.add(jToggleButton5, java.awt.BorderLayout.CENTER);

        jLabel5.setText("" + Augen[4]);
        jPanel5.add(jLabel5, java.awt.BorderLayout.PAGE_START);

        getContentPane().add(jPanel5);

        jButton1.setText("Fertig");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        getContentPane().add(jButton1);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
      // TODO update von output aus den zuständen der ToggleButtons und anschließendes schließen des Dialogs.
    }//GEN-LAST:event_jButton1ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JToggleButton jToggleButton1;
    private javax.swing.JToggleButton jToggleButton2;
    private javax.swing.JToggleButton jToggleButton3;
    private javax.swing.JToggleButton jToggleButton4;
    private javax.swing.JToggleButton jToggleButton5;
    // End of variables declaration//GEN-END:variables
}
